<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		<h4 class="modal-title" id="myModalLabel"><s:property value="#session.role.roleName"/> 权限编辑</h4>
	</div>
	<div class="modal-body">
	<form class="layui-form" action="" >
				<div class="table-responsive">
						<div class="layui-form-item">
							        <label class="layui-form-label">当前权限：</label>
								<%-- 		<input type="text" class="form-control"  name="orders.theCustomer.realName"  value="<s:property value="#session.orders.theCustomer.realName"/>"/>
							        --%>
								      <s:iterator value="#session.role.permission">
									    <input type="button" value="<s:property value="permissionName" />" class="btn"  />
									</s:iterator>
									
									
						</div>
							
			</div>  	
					
			
    	
       
        
        
         <div class="layui-form-item">
         
        </div>
      </form>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
		<button type="button" class="btn btn-primary" onclick="addClassify()">提交</button>
	</div>

<script type="text/javascript">
	function addClassify(){
		document.forms[0].action="furnitureTypeAction!addClassify.action";
		document.forms[0].submit();
	};
</script>

</body>
</html>